package com.chenxin.wms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenxin.wms.domain.SupplierEntity;
import com.chenxin.wms.domain.po.SupplierInfo;
import com.chenxin.wms.domain.vo.SupplierVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 供应商资料Mapper接口
 *
 * @author gry
 * @date 2025-04-10
 */
@Mapper
public interface SupplierMapper extends BaseMapper<SupplierEntity> {
    /**
     * 查询供应商资料列表
     *
     * @param supplierEntity 供应商资料
     * @return 供应商资料集合
     */
    List<SupplierVO> selectSupplierViewList(SupplierEntity supplierEntity);

    SupplierInfo selectSupplierViewByNo(String supplierNo);

    /**
     * 批量删除供应商资料
     *
     * @param supplierIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteSupplierBySupplierIds(Long[] supplierIds);
}
